﻿@model LoginModel
@{
    ViewBag.Title = "登录";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<section class="sign">
    <div class="brand">
        <div class="img">
            <img src="/Content/themes/base/images/login_img.jpg" />
        </div>
        <div class="desc">
            <div class="title">真爱一生</div>
            <div class="content">我们为您提供网络交友平台，一对一推荐服务及各种交友活动。</div>
        </div>
    </div>
    <div class="form">
        <div class="form-wrap">
            <div class="title">登录</div>
            @Html.ValidationSummary(true)
            @using (Html.BeginForm())
            {
                <div class="field">
                    <div class="editor-label">
                        <label>
                            请输入电子邮箱和密码。
                        </label>
                    </div>
                </div>
                <div class="field">
                    <div class="editor-field">
                        @Html.TextBoxFor(model => model.Username, new { @placeholder = "电子邮箱" })
                        @Html.ValidationMessageFor(model => model.Username)
                    </div>
                </div>
                <div class="field">
                    <div class="editor-field">
                        @Html.PasswordFor(model => model.Password, new { @placeholder = "密码" })
                        @Html.ValidationMessageFor(model => model.Password)
                    </div>
                </div>
                <div class="field remember">
                    <div class="editor-field">
                        @Html.CheckBoxFor(model => model.RememberMe)
                        @Html.LabelFor(model => model.RememberMe)
                    </div>
                </div>
                <div class="field">
                    <div class="editor-field">
                        <input type="submit" value="登录" />
                    </div>
                </div>
                <div class="field">
                    <div class="editor-label">
                        <label>@Html.ActionLink("无法访问帐户?", "ResetPassword")</label>
                    </div>

                </div>
                <div class="field">
                    <div class="editor-label sign-up">
                        <label>
                            如果你还没有帐户，请 @Html.ActionLink("立即注册", "SignUp")。
                        </label>
                    </div>
                </div>
            }
        </div>
    </div>
</section>

